<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
<title>matrix_booster: Referencia de la Clase Complex</title>
<link href="doxygen.css" rel="stylesheet" type="text/css">
<link href="tabs.css" rel="stylesheet" type="text/css">
</head><body>
<!-- Generado por Doxygen 1.5.5 -->
<div class="navigation" id="top">
  <div class="tabs">
    <ul>
      <li><a href="index.html"><span>Página&nbsp;principal</span></a></li>
      <li class="current"><a href="annotated.html"><span>Clases</span></a></li>
      <li><a href="files.html"><span>Archivos</span></a></li>
    </ul>
  </div>
  <div class="tabs">
    <ul>
      <li><a href="annotated.html"><span>Lista&nbsp;de&nbsp;clases</span></a></li>
      <li><a href="functions.html"><span>Miembros&nbsp;de&nbsp;las&nbsp;clases</span></a></li>
    </ul>
  </div>
</div>
<div class="contents">
<h1>Referencia de la Clase Complex</h1><!-- doxytag: class="Complex" -->Clase que implementa el tipo complejo.  
<a href="#_details">Más...</a>
<p>
<code>#include &lt;<a class="el" href="complex_8hpp-source.html">complex.hpp</a>&gt;</code>
<p>

<p>
<a href="classComplex-members.html">Lista de todos los miembros.</a><table border="0" cellpadding="0" cellspacing="0">
<tr><td></td></tr>
<tr><td colspan="2"><br><h2>Métodos públicos</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classComplex.html#43b9f07cdf697c71b5fd506a6cc80b8f">Complex</a> ()</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classComplex.html#d79a5d8db5595f6661f066e3a691ac40">Complex</a> (double)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classComplex.html#0a9ac766ecb69aa823210728b5238164">Complex</a> (double, double)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classComplex.html#d6b6aba985d85982e621b244c5533ce6">Complex</a> (const <a class="el" href="classComplex.html">Complex</a> &amp;c)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="classComplex.html">Complex</a> &amp;&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classComplex.html#d63f572bf5b643c714e388cda5c6f5cb">operator=</a> (const <a class="el" href="classComplex.html">Complex</a> &amp;c)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">asignacion:  <a href="#d63f572bf5b643c714e388cda5c6f5cb"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="classComplex.html">Complex</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classComplex.html#85335af4619e9e47aa9c0846d1d149b0">operator+</a> (const <a class="el" href="classComplex.html">Complex</a> &amp;c) const </td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">suma: complejo+complejo  <a href="#85335af4619e9e47aa9c0846d1d149b0"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="classComplex.html">Complex</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classComplex.html#f4fd1eb88e00915f3f3d51d1d3eeeb0b">operator+=</a> (const <a class="el" href="classComplex.html">Complex</a> &amp;c) const </td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">suma y asigna: complejo+=complejo  <a href="#f4fd1eb88e00915f3f3d51d1d3eeeb0b"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="classComplex.html">Complex</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classComplex.html#9db6e1faaf7164c809d3567085b5c89f">operator-</a> (const <a class="el" href="classComplex.html">Complex</a> &amp;c) const </td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">resta: complejo-complejo  <a href="#9db6e1faaf7164c809d3567085b5c89f"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="classComplex.html">Complex</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classComplex.html#86f4398baa4ea8b9b52c39ad66f0a763">operator*</a> (const <a class="el" href="classComplex.html">Complex</a> &amp;c) const </td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">producto: complejo*complejo  <a href="#86f4398baa4ea8b9b52c39ad66f0a763"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="classComplex.html">Complex</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classComplex.html#9a4a427e85873a2c7ffb2f0dd80e48bc">operator-</a> () const </td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">producto: complejo*complejo  <a href="#9a4a427e85873a2c7ffb2f0dd80e48bc"></a><br></td></tr>
<tr><td colspan="2"><br><h2>Atributos protegidos</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">double&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classComplex.html#843ce2f85af4c57db9063c86f3cd9607">re</a></td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">double&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classComplex.html#776d595d5a1b576e9136cbc6bac0589c">im</a></td></tr>

<tr><td colspan="2"><br><h2>Amigas</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="classComplex.html">Complex</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classComplex.html#9e192c9a21e15575f5d9cbf8cb93c59c">operator+</a> (double d, const <a class="el" href="classComplex.html">Complex</a> &amp;c)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">suma: double+complejo  <a href="#9e192c9a21e15575f5d9cbf8cb93c59c"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="classComplex.html">Complex</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classComplex.html#c04e31ec5cbb8643690dd6c01bab7e0b">operator-</a> (double d, const <a class="el" href="classComplex.html">Complex</a> &amp;c)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">resta: double-complejo  <a href="#c04e31ec5cbb8643690dd6c01bab7e0b"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="classComplex.html">Complex</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classComplex.html#8f7c64a77e1e179f5362bbd9cf5315f6">operator*</a> (double d, const <a class="el" href="classComplex.html">Complex</a> &amp;c)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">producto: double*complejo  <a href="#8f7c64a77e1e179f5362bbd9cf5315f6"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">ostream &amp;&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classComplex.html#dd2bef64469040c12f3b483f68391bba">operator&lt;&lt;</a> (ostream &amp;o, const <a class="el" href="classComplex.html">Complex</a> &amp;c)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">operador de salida:  <a href="#dd2bef64469040c12f3b483f68391bba"></a><br></td></tr>
</table>
<hr><a name="_details"></a><h2>Descripción detallada</h2>
Clase que implementa el tipo complejo. <hr><h2>Documentación del constructor y destructor</h2>
<a class="anchor" name="43b9f07cdf697c71b5fd506a6cc80b8f"></a><!-- doxytag: member="Complex::Complex" ref="43b9f07cdf697c71b5fd506a6cc80b8f" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">Complex::Complex           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>

</div>
</div><p>
<a class="anchor" name="d79a5d8db5595f6661f066e3a691ac40"></a><!-- doxytag: member="Complex::Complex" ref="d79a5d8db5595f6661f066e3a691ac40" args="(double)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">Complex::Complex           </td>
          <td>(</td>
          <td class="paramtype">double&nbsp;</td>
          <td class="paramname"> <em>r</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>

</div>
</div><p>
<a class="anchor" name="0a9ac766ecb69aa823210728b5238164"></a><!-- doxytag: member="Complex::Complex" ref="0a9ac766ecb69aa823210728b5238164" args="(double, double)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">Complex::Complex           </td>
          <td>(</td>
          <td class="paramtype">double&nbsp;</td>
          <td class="paramname"> <em>r</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double&nbsp;</td>
          <td class="paramname"> <em>i</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td width="100%"></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>

</div>
</div><p>
<a class="anchor" name="d6b6aba985d85982e621b244c5533ce6"></a><!-- doxytag: member="Complex::Complex" ref="d6b6aba985d85982e621b244c5533ce6" args="(const Complex &amp;c)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">Complex::Complex           </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classComplex.html">Complex</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>c</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>

</div>
</div><p>
<hr><h2>Documentación de las funciones miembro</h2>
<a class="anchor" name="d63f572bf5b643c714e388cda5c6f5cb"></a><!-- doxytag: member="Complex::operator=" ref="d63f572bf5b643c714e388cda5c6f5cb" args="(const Complex &amp;c)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classComplex.html">Complex</a> &amp; Complex::operator=           </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classComplex.html">Complex</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>c</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
asignacion: 
<p>

</div>
</div><p>
<a class="anchor" name="85335af4619e9e47aa9c0846d1d149b0"></a><!-- doxytag: member="Complex::operator+" ref="85335af4619e9e47aa9c0846d1d149b0" args="(const Complex &amp;c) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classComplex.html">Complex</a> Complex::operator+           </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classComplex.html">Complex</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>c</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
suma: complejo+complejo 
<p>

</div>
</div><p>
<a class="anchor" name="f4fd1eb88e00915f3f3d51d1d3eeeb0b"></a><!-- doxytag: member="Complex::operator+=" ref="f4fd1eb88e00915f3f3d51d1d3eeeb0b" args="(const Complex &amp;c) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classComplex.html">Complex</a> Complex::operator+=           </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classComplex.html">Complex</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>c</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
suma y asigna: complejo+=complejo 
<p>

</div>
</div><p>
<a class="anchor" name="9db6e1faaf7164c809d3567085b5c89f"></a><!-- doxytag: member="Complex::operator-" ref="9db6e1faaf7164c809d3567085b5c89f" args="(const Complex &amp;c) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classComplex.html">Complex</a> Complex::operator-           </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classComplex.html">Complex</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>c</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
resta: complejo-complejo 
<p>

</div>
</div><p>
<a class="anchor" name="86f4398baa4ea8b9b52c39ad66f0a763"></a><!-- doxytag: member="Complex::operator*" ref="86f4398baa4ea8b9b52c39ad66f0a763" args="(const Complex &amp;c) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classComplex.html">Complex</a> Complex::operator*           </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classComplex.html">Complex</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>c</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
producto: complejo*complejo 
<p>

</div>
</div><p>
<a class="anchor" name="9a4a427e85873a2c7ffb2f0dd80e48bc"></a><!-- doxytag: member="Complex::operator-" ref="9a4a427e85873a2c7ffb2f0dd80e48bc" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classComplex.html">Complex</a> Complex::operator-           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
producto: complejo*complejo 
<p>

</div>
</div><p>
<hr><h2>Documentación de las funciones relacionadas y clases amigas</h2>
<a class="anchor" name="9e192c9a21e15575f5d9cbf8cb93c59c"></a><!-- doxytag: member="Complex::operator+" ref="9e192c9a21e15575f5d9cbf8cb93c59c" args="(double d, const Complex &amp;c)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classComplex.html">Complex</a> operator+           </td>
          <td>(</td>
          <td class="paramtype">double&nbsp;</td>
          <td class="paramname"> <em>d</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="classComplex.html">Complex</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>c</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td width="100%"><code> [friend]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
suma: double+complejo 
<p>

</div>
</div><p>
<a class="anchor" name="c04e31ec5cbb8643690dd6c01bab7e0b"></a><!-- doxytag: member="Complex::operator-" ref="c04e31ec5cbb8643690dd6c01bab7e0b" args="(double d, const Complex &amp;c)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classComplex.html">Complex</a> operator-           </td>
          <td>(</td>
          <td class="paramtype">double&nbsp;</td>
          <td class="paramname"> <em>d</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="classComplex.html">Complex</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>c</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td width="100%"><code> [friend]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
resta: double-complejo 
<p>

</div>
</div><p>
<a class="anchor" name="8f7c64a77e1e179f5362bbd9cf5315f6"></a><!-- doxytag: member="Complex::operator*" ref="8f7c64a77e1e179f5362bbd9cf5315f6" args="(double d, const Complex &amp;c)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classComplex.html">Complex</a> operator*           </td>
          <td>(</td>
          <td class="paramtype">double&nbsp;</td>
          <td class="paramname"> <em>d</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="classComplex.html">Complex</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>c</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td width="100%"><code> [friend]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
producto: double*complejo 
<p>

</div>
</div><p>
<a class="anchor" name="dd2bef64469040c12f3b483f68391bba"></a><!-- doxytag: member="Complex::operator&lt;&lt;" ref="dd2bef64469040c12f3b483f68391bba" args="(ostream &amp;o, const Complex &amp;c)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">ostream&amp; operator&lt;&lt;           </td>
          <td>(</td>
          <td class="paramtype">ostream &amp;&nbsp;</td>
          <td class="paramname"> <em>o</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="classComplex.html">Complex</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>c</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td width="100%"><code> [friend]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
operador de salida: 
<p>

</div>
</div><p>
<hr><h2>Documentación de los datos miembro</h2>
<a class="anchor" name="843ce2f85af4c57db9063c86f3cd9607"></a><!-- doxytag: member="Complex::re" ref="843ce2f85af4c57db9063c86f3cd9607" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">double <a class="el" href="classComplex.html#843ce2f85af4c57db9063c86f3cd9607">Complex::re</a><code> [protected]</code>          </td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>

</div>
</div><p>
<a class="anchor" name="776d595d5a1b576e9136cbc6bac0589c"></a><!-- doxytag: member="Complex::im" ref="776d595d5a1b576e9136cbc6bac0589c" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">double <a class="el" href="classComplex.html#776d595d5a1b576e9136cbc6bac0589c">Complex::im</a><code> [protected]</code>          </td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>

</div>
</div><p>
<hr>La documentación para esta clase fue generada a partir de los siguientes ficheros:<ul>
<li><a class="el" href="complex_8hpp-source.html">complex.hpp</a><li><a class="el" href="complex_8cpp.html">complex.cpp</a></ul>
</div>
<hr size="1"><address style="text-align: right;"><small>Generado el Sun Nov 29 22:44:32 2009 para matrix_booster por&nbsp;
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.5 </small></address>
</body>
</html>
